package com.forenow.demo.demo22;
import java.text.SimpleDateFormat;
import java.util.Date;
public class Datademo {
    public static void main(String[] args) {
        Date date=new Date();
        SimpleDateFormat sdf=new SimpleDateFormat("yyyy-MM-dd");
        String s=sdf.format(date);
        System.out.println(s);
    }
}
